package com.thinkingcoder.tccache;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class TcCacheApplication {

    public static void main(String[] args) {
        SpringApplication.run(TcCacheApplication.class, args);
    }

    @Bean
    public ApplicationRunner createRunner(@Autowired ApplicationContext context) {
        return x -> {
            System.out.println("ApplicationArguments: " + x);
        };
    }

}
